from django.db import models
from django.utils import timezone
# Create your models here.


# 曲谱库
class Staff(models.Model):
    song_name = models.CharField('曲名',max_length=32,null=True)
    author = models.CharField('作者',max_length=32,null=True)
    brief_introduction = models.CharField('简介',max_length=255,null=True)
    read_number = models.IntegerField('阅读数',default=0)
    images = models.CharField('图片',max_length=255,null=True)
    release_time = models.DateTimeField(default=timezone.now,null=True)

    class Meta:
        db_table = 'blog_staff'